﻿using API.Product;
using Common;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    public class BaseBLL
    {
        static string ip = LocalInfo.GetLocalIP();
        static string osInfo = LocalInfo.OsInfo();
        public BaseBLL()
        {
            this.Request = new ClientRequest();
            this.Request.Operator = MemberInfo.User.LoginName;
            this.Request.IP = ip;
            this.Request.Browser = osInfo;
        }

        protected API.Store.ClientRequest StoreRequest()
        {
            API.Store.ClientRequest _Request = new API.Store.ClientRequest();
            _Request.Operator = this.Request.Operator;
            _Request.IP = this.Request.IP;
            _Request.Browser = this.Request.Browser;
            _Request.LastUpdateDate = this.Request.LastUpdateDate;
            return _Request;
        }
        protected ClientRequest Request { get; set; }
    }
}
